# 打印数字
# print(2024)
from math import log10
from traceback import print_tb

# 打印字符串
# print('hello world')
# print('hello world')
# print('hello world')  # 多行
#
# print(100 + 300)
#
# print(2**10)
# print(2*10)

# name = input('123')
#
# print(name)

# print(1.23e-5)

# print('I\'m OK')

# print('''
#     123
#     123
#     123
# ''')

# print(False)
# print(3>8)

# print(True and False)
# print(True or False)
# print(not False)



# age = 12
# if age > 18:
#     print('成年了')
# else:
#     print('未成年')


# print(None)


# 变量

# a = 123
#
# a = 'str'
#
# a = False
#
# a = None


# 常量
# PI = 123
# PI = 'str'
# print(PI)

# a = ord('赵')
# b = ord('光')
# c = ord('涛')
# print(a,b,c)

# d = chr(20809)
#
# print(d)


# a = ord('邓')
# b = ord('红')
# c = ord('亮')
#
# d = ord('我')
# e = ord('爱')
# f = ord('你')
#
# print(a, b, c, d, e, f)



# a = 'str'
# print(a, len(a))


# arr = [1, 2, 3]
# print(arr, len(arr), arr[0], arr[-1])
#
# # 末尾增加
# arr.append(4)
#
# print(arr)
#
# # 指定位置增加
# arr.insert(0, 0)
#
# print(arr)
#
# # 末尾删除
# arr.pop()
#
# print(arr)
#
# # 删除指定索引
# arr.pop(1)
#
# print(arr)
#
# # 替换索引位元素
# arr[0] = '飒飒的'
#
# print(arr)

# 元组

# arr = (123, 'str', True)
#
# print(arr)

# 条件判断

# age = 18
#
# if age > 18:
#     print("123")
# elif age == 18:
#     print('000')
# else:
#     print('456')
#
#
# if 13>0:
#     print(13)

# 模式匹配

# score = 'B'
# if score=='A':
#     print('score is A')
# else:
#     print('score is B')

# score = 'A'
# match score:
#     case 'A':
#         print('A')
#     case 'B':
#         print('B')
#     case _:
#         print('All')

# args = ['A', 'B', 'C', 'D']
# match args:
#     case ['A']:
#         print(('A'))
#     case ['B']:
#         print('B')
#     case _:
#         print('______')

# age = 36
#
# match age:
#     case x if x < 5:
#         print(f' 小于 5 years old: {x}')
#     case 6|7|8|9|10:
#         print('6~10岁')
#     case 18:
#         print('我成年了')
#     case x if x > 30:
#         print(f'印第安老斑鸠： {x}')
#     case _:
#         print('no sure!')

# sum = 0
#
# for x in list(range(100)):
#     sum += x
# print(sum)

# list = ['A', 'B', 'C', 'D']
#
# for x in list:
#     print(f'{x}')


# n = 1
# while n <= 100:
#     print(n)
#     n = n + 1
# print('end')

# n = 1
# while n <= 100:
#     if n < 50:
#         print(n, 'oopopopoppoppooo')
#         break
#     elif 50 <= n < 90:
#         print(n, '--=--=--=--')
#     else :
#         print(n, 'other')
#     n += 1
# print('End')


# 九九乘法表
# n = 9
# for i in range(n):
#     for j in range(i+1):
#         print('%dx%d=%d'% (i+1,j+1,(i+1)*(j+1)), end=' ')
#     print()


# 函数

# 实现 S=πr^2 计算圆形的面积
# def calculate_area(c, r):
#     return c*r*r
# area = calculate_area(3.14, 5)
# print(area)
#
# # 空函数
# def no_fc():
#     pass

# 数据类型转换
# print(int('123'), type(int('123')))
# print(int(12.12), type(int(12.12)))
# print(str(123), type(str(123)))
# print([1,2,3,4], type([1,2,3,4]))

# 判断数据类型
# a = 12
# b = 'apple'
# c = False
# d = [1,2,3,4]
# e = {
#     'key': 123
# }
# f = tuple = (1,a,2,b,3,c)
#
# print(a, type(a))
# print(b, type(b))
# print(c, type(c))
# print(d, type(d))
# print(e, type(e))
# print(f, type(f))
